Dist a distribution independent parallel programs for matrix multiplication
نویسندگان
چکیده
This report considers the problem of writing data distribution independent (DDI) programs in order to eliminate or reduce initial data redistribution overheads for distributed memory parallel computers. The functionality and execution time of DDI programs are independent of initial data distributions. First, modular mappings, which can be used to derive many equally optimal ant1 functionally equivalent programs, are briefly reviewed. Relations between modular mappings and input data distributions are then established. These relations are the basis of a systematic approach to the derivation of DDI programs which is illustrated for matrix-matrix multiplication(c = a x b). Conditions on data distributions that correspond to an optimal modular mapping are: (1) the first row of the inverse of distribution pattern matrix of army 'a' should be equal to the second row of the inverse of distribution pattern matrix of array 'b') (2) the second row of the inverse of distribution pattern matrix of array 'a' should be linearly independent of the first row of the inverse of distribution pattern matrix of array 'b', and (3) each distribution pattern matrix of arrays 'a', 'b', and 'c' should have at [east one zero entry, respectively. It is shown that only twelve programs suffice to accomplish redistribution-free execution for the many input data distributions that satisfy the above conditions. When DDI matrix multiplication programs are used in an algorithm with multiple matrix products, half of data redistributions otherwise required can be eliminated.
منابع مشابه
A New Parallel Matrix Multiplication Method Adapted on Fibonacci Hypercube Structure
The objective of this study was to develop a new optimal parallel algorithm for matrix multiplication which could run on a Fibonacci Hypercube structure. Most of the popular algorithms for parallel matrix multiplication can not run on Fibonacci Hypercube structure, therefore giving a method that can be run on all structures especially Fibonacci Hypercube structure is necessary for parallel matr...
متن کاملILIAS, a Sequential Language for Parallel Matrix Computations
The ILIAS system consists of a. sequential language for matrix computations, a compiler translating a. source program into ILIAS pseudo code and a parallel interpreter for this code. The pseudo code is independent of a target architecturej it merely specifies scalar and matrix computations. We present the ILIAS language and discuss its implementation on a square torus network of transputers. Su...
متن کاملRemote memory access: A case for portable, efficient and library independent parallel programming
In this work we make a strong case for remote memory access (RMA) as the only way to program a parallel computer by proposing a framework that supports RMA in a library independent way. If one uses our approach the parallel code one writes will run transparently under MPI-2 enabled libraries but also bulk-synchronous parallel libraries. The advantage of using RMA is code simplicity, reduced pro...
متن کاملExperiments with Strassen’s Algorithm: from Sequential to Parallel
This paper studies Strassen’s matrix multiplication algorithm by implementing it in a variety of methods: sequential, workflow, and in parallel. All the methods show better performance than the well-known scientific libraries for medium to large size matrices. The sequential recursive program is implemented and compared with ATLAS’s DGEMM subroutine. A workflow program in the NetSolve system an...
متن کاملScalable parallelization of dynamic algorithms using the Chunks and Tasks programming model
We describe how the Chunks and Tasks programming model can be used for efficient parallelization of computations. In the Chunks and Tasks model there is no message passing, instead the application programmer specifies how to divide the work into small pieces (tasks) that can be executed in parallel. Abstractions for data (chunks) are also provided. The application programmer need not worry abou...
متن کامل